//
//  ScaleInfo.m
//  CorePlotTest
//
//  Created by zhangjikun on 12-11-9.
//
//

#import "ScaleInfo.h"

@implementation ScaleInfo

@synthesize _Date;

@synthesize _SYS;
@synthesize _DIA;
@synthesize _PUL;

#pragma NSCoding delegate
//encoder是编码
- (void) encodeWithCoder: (NSCoder *)coder
{
    [coder encodeObject:_Date forKey:@"_Date"];
    
    [coder encodeInt:self._SYS forKey:@"_SYS"];
    [coder encodeInt:self._DIA forKey:@"_DIA"];
    [coder encodeInt:self._PUL forKey:@"_PUL"];

}
//coder是解码
- (id) initWithCoder: (NSCoder *) coder
{       
    if (self = [super init])
    {
        self._Date = [coder decodeObjectForKey:@"_Date"];
        
        self._SYS=[coder decodeIntForKey:@"_SYS"];
        self._DIA=[coder decodeIntForKey:@"_DIA"];
        self._PUL=[coder decodeIntForKey:@"_PUL"];
        
    }
    return self;
}
@end
